package com.lin.logback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 九分石人
 */
@RestController
public class Controller {

    Logger log = LoggerFactory.getLogger(Controller.class);

    @RequestMapping("info")
    public void info() {
        log.debug("debug");
        log.info("info");
        log.warn("warn");
        log.trace("trace");
        log.error("error");
//        log.fatal("fatal");
    }
}
